Tegra: Extend NS address check error output
authorAndreas Färber <[email protected]>
Sun, 16 Jun 2019 21:32:20 +0000 (23:32 +0200)
committerAndreas Färber <[email protected]>
Thu, 20 Jun 2019 09:34:14 +0000 (11:34 +0200)
Let bl31_check_ns_address() print the address it doesn't like.

Signed-off-by: Andreas Färber <[email protected]>
Change-Id: I29a4fb33c24e9f7464ccd2ea44a4608f5cfe5be6

plat/nvidia/tegra/common/tegra_bl31_setup.c

index c9beb142672f669caf2f5da3930168024b40af6c..4d406683c0107a0f77365e88191bd96f85c89341 100644 (file)
@@ -470,7 +470,7 @@ int32_t bl31_check_ns_address(uint64_t base, uint64_t size_in_bytes)
        if ((base < TEGRA_DRAM_BASE) || (base >= TEGRA_DRAM_END) ||
            (end > TEGRA_DRAM_END)) {
 
-               ERROR("NS address is out-of-bounds!\n");
+               ERROR("NS address 0x%llx is out-of-bounds!\n", base);
                ret = -EFAULT;
        }
 
@@ -479,7 +479,7 @@ int32_t bl31_check_ns_address(uint64_t base, uint64_t size_in_bytes)
         * to check if the NS DRAM range overlaps the TZDRAM aperture.
         */
        if ((base < (uint64_t)TZDRAM_END) && (end > tegra_bl31_phys_base)) {
-               ERROR("NS address overlaps TZDRAM!\n");
+               ERROR("NS address 0x%llx overlaps TZDRAM!\n", base);
                ret = -ENOTSUP;
        }